﻿/*****************************************介绍*****************************************
 * 作者：Ywh
 * 创建时间：2024-03-08　05:03:53
 * 功能：贴图后处理
**************************************************************************************/

using UnityEditor;

public class AutoConvertTexture : AssetPostprocessor
{
    private void OnPreprocessTexture()
    {
        if (assetPath.StartsWith("Assets/HotFixResources/Textures/Icons_New"))
        {
            var textureImp = assetImporter as TextureImporter;
            textureImp.textureType = TextureImporterType.Sprite;
        }
    }
}